#!/bin/bash

key=`cat /proc/sys/kernel/random/uuid`
key=${key//"-"/""}
echo "key=$key"

echo "key=$key" > ~/.pam_mytotp.conf
echo "key_format=string" >> ~/.pam_mytotp.conf
echo "window=3" >> ~/.pam_mytotp.conf
echo "interval=30" >> ~/.pam_mytotp.conf
#chown $USER ~/.pam_mytotp.conf
chmod 600 ~/.pam_mytotp.conf
